/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fd;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Administrador
 */
@Entity
@Table(name = "fd_detalles")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "FdDetalles.findAll", query = "SELECT f FROM FdDetalles f"),
    @NamedQuery(name = "FdDetalles.findByDetalle", query = "SELECT f FROM FdDetalles f WHERE f.detalle = :detalle"),
    @NamedQuery(name = "FdDetalles.findByPedido", query = "SELECT f FROM FdDetalles f WHERE f.pedido = :pedido"),
    @NamedQuery(name = "FdDetalles.findByCombo", query = "SELECT f FROM FdDetalles f WHERE f.combo = :combo")})
public class FdDetalles implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @NotNull
    @Column(name = "detalle")
    private Integer detalle;
    @Basic(optional = false)
    @NotNull
    @Column(name = "pedido")
    private int pedido;
    @Basic(optional = false)
    @NotNull
    @Column(name = "combo")
    private int combo;

    public FdDetalles() {
    }

    public FdDetalles(Integer detalle) {
        this.detalle = detalle;
    }

    public FdDetalles(Integer detalle, int pedido, int combo) {
        this.detalle = detalle;
        this.pedido = pedido;
        this.combo = combo;
    }

    public Integer getDetalle() {
        return detalle;
    }

    public void setDetalle(Integer detalle) {
        this.detalle = detalle;
    }

    public int getPedido() {
        return pedido;
    }

    public void setPedido(int pedido) {
        this.pedido = pedido;
    }

    public int getCombo() {
        return combo;
    }

    public void setCombo(int combo) {
        this.combo = combo;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (detalle != null ? detalle.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof FdDetalles)) {
            return false;
        }
        FdDetalles other = (FdDetalles) object;
        if ((this.detalle == null && other.detalle != null) || (this.detalle != null && !this.detalle.equals(other.detalle))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "fd.FdDetalles[ detalle=" + detalle + " ]";
    }
    
}
